$('#level2').hide();
$('#level1').html('<input type="hidden" name="parent" id="parent" value="0"/>');
function level1(){
	$('#level2').fadeOut();
	$('#level1').html('<input type="hidden" name="parent" id="parent" value="0"/>');
}
function level2(){
	$('#level2').fadeIn();
	$('#level1').html('');
}
function toSite(url)
{
	window.location=url;
}

$(".switch-enable").click(function(){
    var parent = $(this).parents('.switch-wrapper');
    $('.switch-disable',parent).removeClass('selected');
    $(this).addClass('selected');
    $('#radio').html('<input type="hidden" id="status" name ="status" value="1" />');
});
$(".switch-disable").click(function(){
    var parent = $(this).parents('.switch-wrapper');
    $('.switch-enable',parent).removeClass('selected');
    $(this).addClass('selected');
    $('#radio').html('<input type="hidden" id="status" name ="status" value="0" />');
});